/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:46 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.pointeuse.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;


import javax.persistence.*;

@Entity
@Table(name="pointeuse", catalog="dbscoremanager" )
public class Pointeuse implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idPointeuse", nullable=false)
    private int        idpointeuse  ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idSite", nullable=false)
    private int        idsite       ;
    @Column(name="idPointage", nullable=false)
    private int        idpointage   ;
    @Column(name="localisation", length=254)
    private String     localisation ;
    @Column(name="porte", length=254)
    private String     porte        ;
    @Column(name="addIp", length=254)
    private String     addip        ;
    @Column(name="addMac", length=254)
    private String     addmac       ;
    @Column(name="port")
    private Integer    port         ;
    @Column(name="communication", length=254)
    private String     communication ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Pointeuse()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdpointeuse( int value )
    {
        this.idpointeuse = value;
    }
    public int getIdpointeuse()
    {
        return this.idpointeuse;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idSite ( INT ) 
    public void setIdsite( int value )
    {
        this.idsite = value;
    }
    public int getIdsite()
    {
        return this.idsite;
    }

    //--- DATABSE MAPPING : idPointage ( INT ) 
    public void setIdpointage( int value )
    {
        this.idpointage = value;
    }
    public int getIdpointage()
    {
        return this.idpointage;
    }

    //--- DATABSE MAPPING : localisation ( VARCHAR ) 
    public void setLocalisation( String value )
    {
        this.localisation = value;
    }
    public String getLocalisation()
    {
        return this.localisation;
    }

    //--- DATABSE MAPPING : porte ( VARCHAR ) 
    public void setPorte( String value )
    {
        this.porte = value;
    }
    public String getPorte()
    {
        return this.porte;
    }

    //--- DATABSE MAPPING : addIp ( VARCHAR ) 
    public void setAddip( String value )
    {
        this.addip = value;
    }
    public String getAddip()
    {
        return this.addip;
    }

    //--- DATABSE MAPPING : addMac ( VARCHAR ) 
    public void setAddmac( String value )
    {
        this.addmac = value;
    }
    public String getAddmac()
    {
        return this.addmac;
    }

    //--- DATABSE MAPPING : port ( INT ) 
    public void setPort( Integer value )
    {
        this.port = value;
    }
    public Integer getPort()
    {
        return this.port;
    }

    //--- DATABSE MAPPING : communication ( VARCHAR ) 
    public void setCommunication( String value )
    {
        this.communication = value;
    }
    public String getCommunication()
    {
        return this.communication;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
